/**
 * Created by liujie on 2018/1/21.
 */
;(function ($) {
    var $content = '<div class="progressbar-content"></div>';
    var $bar = '<span class="progressbar-span"></span>';
    $.fn.progressBar = function (options) {
        var $this = this instanceof jQuery ? this : $(this);
        $this.html("");
        $this.append($content);
        $this.append($bar);
    };
    $.fn.setProgress=function (value) {
        var $this = this instanceof jQuery ? this : $(this);
        $this.find(".progressbar-span").css({left:value+"%"});
        $this.find(".progressbar-content").css({width:value+"%"})
    }
})(jQuery);